.model tiny                                     

.data

Msg:	db 'Hello, world!$'


.code

org 100h

Start:	mov ax, 0b800h
	
	add ax, 0bah
	
	mov es, ax
	xor di, di
		
	mov bx, offset Msg

Next:	mov al, [bx]	; cmp byte ptr [bx], '$' - accepted
	cmp al, '$'
	je Exit
	
Print:	mov al, [bx] 
	mov es:[di], al	; mov es:[di], [bx] - no, cause 'mov MEM, MEM' - not allowed
			; mov byte ptr es:[ds + 1], 4eh - ????
	inc bx
	
	inc di
	mov byte ptr es:[di], 96h	; flashing brown on blue
	
	inc di
	
	jmp Next

Exit:	mov ax, 4c00h
	int 21h

end	Start